﻿public class MsgRegister : MsgBase
{
    public MsgRegister()
    {
        protoName = "MsgRegister";
    }

    //客户端发
    public string id = "";
    public string pw = "";

    //服务端回
    public int result = 0;
}

public enum RegisterResult
{
    Successful,
    ExistId,
    NotSafe,
    Other
}

public class MsgLogin : MsgBase
{
    public MsgLogin()
    {
        protoName = "MsgLogin";
    }

    //客户端发
    public string id = "";
    public string pw = "";

    //服务端回
    public int result = 0;
}

public enum LoginResult
{
    Successful,
    WrongIdOrPw,
    NotSafe,
    IsOnline,
    Other
}

//踢下线（服务端推送）
public class MsgKick : MsgBase
{
    public MsgKick()
    {
        protoName = "MsgKick";
    }

    //原因
    public int reason = 0;
}

public enum KickReason
{
}